package com.hzncc.flowable_diboot.delivery.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;


import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 发货关联合同项目信息 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-10-12
* Copyright © MyCorp
*/

@TableName("mdl_delivery_product")
@Getter @Setter @Accessors(chain = true)
public class DeliveryProduct extends BaseModel {
    private static final long serialVersionUID = 1489688753177287459L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * 发货单号
     */
    @Length(max=100, message="发货单号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String deliveryCode;

    /**
     * Sap合同号
     */
    @Length(max=100, message="Sap合同号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String sapContractCode;

    /**
     * 合同号
     */
    @Length(max=100, message="合同号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String contractCode;

    /**
     * 合同类型
     */
    @Length(max=100, message="合同类型长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String contractType;

    /**
     * 合同签订单位
     */
    @Length(max=100, message="合同签订单位长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String recipient;

    /**
     * 销售办公室
     */
    @Length(max=100, message="销售办公室长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String salesTerritory;

    /**
     * 业务板块
     */
    @Length(max=100, message="业务板块长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String businessModel;

    /**
     * 业务部门
     */
    @Length(max=100, message="业务部门长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String businessDept;

    /**
     * 签约人
     */
    @Length(max=100, message="签约人长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String signer;

    /**
     * 省份
     */
    @Length(max=100, message="省份长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String province;

    /**
     * 市级
     */
    @Length(max=100, message="市级长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String city;

    /**
     * 订购型号
     */
    @Length(max=100, message="订购型号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String orderModel;

    /**
     * 机床类型
     */
    @Length(max=100, message="机床类型长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String machineToolType;

    /**
     * 系统配套机床
     */
    @Length(max=100, message="系统配套机床长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String supportingMachineTool;

    /**
     * 产品系列
     */
    @Length(max=100, message="产品系列长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String productSeries;

    /**
     * 档次
     */
    @Length(max=100, message="档次长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String grade;

    /**
     * 订单数量
     */
    @TableField()
    private Long productCount;

    /**
     * 单价
     */
    @TableField()
    private BigDecimal productPrice;

//    /**
//     * 发货数量
//     */
//    @Length(max=100, message="发货数量长度应小于100")
//    @BindQuery(comparison = Comparison.LIKE)
//    @TableField()
//    private String deliveryQuantity;
//
//    /**
//     * 发货金额
//     */
//    @Length(max=100, message="发货金额长度应小于100")
//    @BindQuery(comparison = Comparison.LIKE)
//    @TableField()
//    private String deliveryAmount;

    /**
     * 签订日期
     */
    @TableField()
    private LocalDateTime signDate;

    /**
     * 合同交货日期
     */
    @Length(max=100, message="合同交货日期长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String deliveryTime;

    /**
     * 最终用户
     */
    @Length(max=100, message="最终用户长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String finalUser;

    /**
     * 账户分配
     */
    @Length(max = 100,message = "账户分配长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String accountAssignment;


}